// @import './variable.less';
body {
    background-color: @body-bg;
}
#nprogress .bar {
    background: #e9d6b7;
}
.ant-layout {
    background: transparent !important;
    padding: 0 !important;
}

.app-header {
    position: fixed;
    z-index: 100;
    width: 100%;
    background: @primary-color;
    padding: 0 16px;

    .header-wrapper {
        // max-width: @wrapper-width;

        height: 64px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 200px;
            transition: 0.2s;
            &.isCollapse {
                width: 60px;
            }
            img {
                width: 80px;
                height: 50px;
                display: block;
                margin-right: 10px;
            }

            h1 {
                margin-bottom: 0;
                font-weight: bold;
                color: #fff;
                font-size: 30px;
                margin-right: 64px;
                white-space:nowrap;
            }
        }

        .ant-dropdown-link {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            display: block;
        }
    }
}

// @media only screen and (min-width: 1280px) {
//     .app-header {
//         padding: 0 calc(50vw - 624px);
//     }
// }

.app-wrapper {
    height: 100vh;
}


.app-content {
    // height: calc(100vh - @nav-height - @footer-height - @layout-gutter *2);
    width: @wrapper-width;
    margin: @nav-height + @layout-gutter *2 auto @footer-height;
    padding: 0 @base-gutter;
}

.app-content-wrapper {
    display: flex;
    height: 100%;
}

.app-content-inner {
    // width: @content-width  !important;
    margin-left: 211px;
    // padding: @layout-gutter * 2;

    &.smallScreen {
        margin-left: 84px;
    }
}
.app-main {
    height: 100%;
    overflow: hidden;
}
.app-sidebar {
    min-width: @mini-side-width;
    max-width: @side-width;
    width: @side-width;
    height: calc(100vh - @nav-height - @footer-height - @layout-gutter *2);
    // margin: @layout-gutter *2 0;
    background-color: #fff;
    // position: absolute;
    border-radius: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    top: @nav-height + @layout-gutter *2;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    outline: 16px solid #f6f6fb;

    .app-sidebar-inner {
        padding: 16px 8px 0;
        min-width: @mini-side-width - 6px;
        max-width: @side-width - 6px;
        width: @side-width - 6px;
        background-color: #fff;
    }

    &.smallScreen {
        width: @mini-side-width;
        .app-sidebar-inner {
            min-width: @mini-side-width - 6px;
            max-width: @mini-side-width - 6px;
            width: @mini-side-width - 6px;
        }
    }

    .ant-menu-inline,
    .ant-menu-vertical,
    .ant-menu-vertical-left {
        border-right: none;
    }

    .ant-menu-sub.ant-menu-inline {
        background-color: #fff;
    }

    .ant-menu-item-only-child {
        padding: 0 16px !important;

        .ant-menu-title-content {
            color: #474e66;
            padding-left: 54px !important;
            // color: rgb(34, 136, 254);
            &:hover {
                background-color: rgba(34, 136, 254, 0.1);
            }
        }
    }

    .ant-menu-submenu-title {
        .ant-menu-title-content {
            // font-weight: 600;
            color: #212533;
            .anticon {
                padding-right: @layout-gutter;
            }
        }
    }
    // .ant-menu-item-selected {
    //      .ant-menu-submenu-title {
    //          .ant-menu-title-content {
    //             color: #2288fe !important;
    //         }
    //     }
    // }
    .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
        background-color: #fff;

        .ant-menu-title-content {
            background-color: rgba(34, 136, 254, 0.1);//rgba(66, 170, 145, 0.1); // rgba(red, green, blue, alpha);
            color: #2288fe;
            font-weight: 600;
        }
    }

    .ant-menu-inline .ant-menu-item {
        margin: 16px 0;
        padding: 0 6px 0 0 !important;

        .ant-menu-title-content {
            padding-left: 24px;

            .anticon {
                padding-right: @layout-gutter;
            }
        }
    }

    .ant-menu-inline .ant-menu-selected::after,
    .ant-menu-inline .ant-menu-item-selected::after {
        opacity: 0;
    }
}

.app-footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    text-align: center;
    color: #667790;
    font-size: 12px;
    height: @footer-height;
    line-height: @footer-height;
    padding: 0;
    background-color: @body-bg;
}



::-webkit-scrollbar-track {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #dadce6;
    border-radius: 3px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-button {
    height: 0;
    width: 0;
}

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

